#!/bin/sh
# By bmarkus May 4, 2013
# add gordon64 24/8/2015
[  -d /usr/local/etc/ssl/private ] || mkdir -p /usr/local/etc/ssl/private
[  -d /usr/local/etc/ssl/crl ] || mkdir -p /usr/local/etc/ssl/crl
[  -d /usr/local/etc/ssl/newcerts ] || mkdir -p /usr/local/etc/ssl/newcerts
[  -f /usr/local/etc/ssl/index.txt ] || touch /usr/local/etc/ssl/index.txt
[  -f /usr/local/etc/ssl/serial ] || echo "01" > /usr/local/etc/ssl/serial
[  -f /usr/local/etc/ssl/crlnumber ] || echo "01" > /usr/local/etc/ssl/crlnumber
tar xzf /usr/local/share/openssl/files/certs.tar.gz -C /usr/local/etc/ssl
ln -s /usr/local/etc/ssl/certs/ca-certificates.crt /usr/local/etc/ssl/certs/cacert.pem
ln -s /usr/local/etc/ssl /etc

